import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import( './views/About.vue')
    },
    {
      path:'/von',
      name:'von',
      component:()=>import('views/VOn')
    },
    {
      path:'/layout',
      name:'layout',
      component:()=>import('views/vant/Layout.vue')
    },
    {
      path:'/datetimepicker',
      name:'datetimepicker',
      component:()=>import('views/vant/DatetimePicker.vue')
    },
    {
      path:'/grid',
      name:'grid',
      component:()=>import('views/vant/Grid.vue')
    },
    {
      path:'/swiper',
      name:'swiper',
      component:()=>import('views/vant/Swiper.vue')
    },
    {
      path:'/defineProperty',
      name:'defineProperty',
      component:()=>import('views/vant/DefineProperty.vue')
    },
    {
      path:'/computed',
      name:'computed',
      component:()=>import('views/Computed.vue')
    },
    {
      path:'/watch',
      name:'watch',
      component:()=>import('views/Watch.vue')
    },

   
  ]
})
